//
//  CYHMenuView.h
//  CYHReader
//
//  Created by chenyh on 2016/9/26.
//  Copyright © 2016年 chenyh. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "CYHRecordModel.h"
#import "CYHTopMenuView.h"
@class CYHMenuView;
@class CYHBottomMenuView;

@protocol CYHMenuViewDelegate <NSObject>
//可选
@optional

- (void)menuViewDidHidden:(CYHMenuView *)menu;

- (void)menuViewDidAppear:(CYHMenuView *)menu;

- (void)menuViewInvokeCatalog:(CYHBottomMenuView *)bottomMenu;

- (void)menuViewJumpChapter:(NSUInteger)chapter page:(NSUInteger)page;

- (void)menuViewFontSize:(CYHBottomMenuView *)bottomMenu;
- (void)menuViewMark:(CYHTopMenuView *)topMenu;

@end

@interface CYHMenuView : NSObject
@property (nonatomic,weak)id<CYHMenuViewDelegate> menuViewDelegate;
@property (nonatomic,strong)CYHRecordModel *recordModel;
@property (nonatomic,strong)CYHTopMenuView *topView;
@property (nonatomic,strong)CYHBottomMenuView *bottomView;
- (void)showAnimation:(BOOL)animation;
- (void)hiddenAnimation:(BOOL)animation;

@end
